module.exports = app => {
    const {
        router,
        controller
    } = app
    router.get('/', controller.home.index)
    router.get('/newslist/:id', controller.news.list)
    router.get('/newsdetail/:id', controller.news.detail)
    router.get('/newssearch', controller.news.search)
    router.get('/getcatnews/:id/:page', controller.getnews.getcatnews)
    router.get('/getsearch/:keyword/:page', controller.getnews.getsearchnews)
    //用户登录
    router.post('/userloggin', controller.user.loggin)
}